﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mds.ServiceInterface
{
    public abstract class Cache
    {
        /// <summary>
        /// 当前版本
        /// </summary>
        public abstract int CurrentVersion { get; }
       /// <summary>
       /// 主键
       /// </summary>
        public virtual int PrimaryId { set; get; }
        /// <summary>
        /// 扩展主键
        /// </summary>
        public virtual string ExtendedId { set; get; }
       
        /// <summary>
        /// 反相序列化
        /// </summary>
        public abstract  void Deserialize();
        /// <summary>
        /// 序列化
        /// </summary>
        public abstract  void Serialize();
        public void read()
        {
        }
        public void write()
        {
        }
    }
}
